import { axios, axiosImage } from '@/utils/request'

export function queryTeacherCourse (parameter) {
  return axios({
    url: '/teacherCourse/query',
    method: 'post',
    data: parameter
  })
}

export function listTeacherCourse11 (parameter) {
  return axios({
    url: '/teacherCourse/listTeacherCourse11',
    method: 'post',
    data: parameter
  })
}

export function queryExamineNum (parameter) {
  return axios({
    url: '/teacherCourse/queryExamineNum',
    method: 'post',
    data: parameter
  })
}

export function addArticle (parameter) {
  return axios({
    url: '/teacherCourse/addArticle',
    method: 'post',
    data: parameter
  })
}

export function queryArticle (parameter) {
  return axios({
    url: '/teacherCourse/queryArticle',
    method: 'post',
    data: parameter
  })
}

export function addTeacherCourse (parameter) {
  return axios({
    url: '/teacherCourse/add',
    method: 'post',
    data: parameter
  })
}

export function examineTeaCou (parameter) {
  return axios({
    url: '/teacherCourse/examineTeaCou',
    method: 'post',
    data: parameter
  })
}

export function uploadVideo (parameter) {
  return axios({
    url: '/teacherCourse/uploadVideo',
    method: 'post',
    data: parameter
  })
}

export function getOssSignature () {
  return axios({
    url: '/teacherCourse/getOssSignature',
    method: 'post'
  })
}

export function uploadToOss (url, parameter) {
  return axiosImage({
    url: url,
    method: 'post',
    cache: false,
    contentType: false,
    processData: false,
    data: parameter
  })
}

export function uploadFile (parameter) {
  return axiosImage({
    url: '/teacherCourse/uploadFile',
    method: 'post',
    cache: false,
    processData: false,
    data: parameter
  })
}

export function editTeacherCourse (parameter) {
  return axios({
    url: '/teacherCourse/update',
    method: 'post',
    data: parameter
  })
}

export function removeTeacherCourse (parameter) {
  return axios({
    url: '/teacherCourse/remove',
    method: 'post',
    data: parameter
  })
}

export function listTeacherCourse (parameter) {
  return axios({
    url: '/teacherCourse/listTeacherCourse',
    method: 'post',
    data: parameter
  })
}

export function listAllTeacherCourse (parameter) {
  return axios({
    url: '/teacherCourse/listAllTeacherCourse',
    method: 'post',
    data: parameter
  })
}
